import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-lgc-componet',
  templateUrl: './lgc-componet.component.html',
  styleUrls: ['./lgc-componet.component.css']
})
export class LgcComponetComponent implements OnInit {

  myname:string;
  id;
  list;
  switchlist;
  num:any;
  today;

  ngOnInit(): void {
    this.myname="lgc";
    this.id="bind";
    this.list=["red","blue","black"];
    this.switchlist="2";
    this.num=100;
    this.today=new Date();
  }
  addnum(){
    this.num++;
  }
  getnum(){
    alert(this.num);
  }
}
